<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set the base URI for all XSLT transformations</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.xslt-process.html">xslt_process</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.xslt-set-encoding.html">xslt_set_encoding</a></div>
 <div class="up"><a href="ref.xslt.html">XSLT (PHP 4) 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.xslt-set-base" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">xslt_set_base</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5)</p><p class="refpurpose"><span class="refname">xslt_set_base</span> &mdash; <span class="dc-title">Set the base URI for all <acronym title="eXtensible Stylesheet Language Transformations">XSLT</acronym> transformations</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.xslt-set-base-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>xslt_set_base</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$xh</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$uri</code></span>
   )</div>

  <p class="para rdfs-comment">
   Sets the base URI for all <acronym title="eXtensible Stylesheet Language Transformations">XSLT</acronym> transformations, the base URI is used
   with Xpath instructions to resolve document() and other commands which
   access external resources. It is also used to resolve URIs for the
   <em>&lt;xsl:include&gt;</em> and <em>&lt;xsl:import&gt;</em> elements.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.xslt-set-base-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    <dt>
<em><code class="parameter">
xh</code></em></dt>
<dd>
<p class="para"><acronym title="eXtensible Stylesheet Language Transformations">XSLT</acronym> 处理器连接标识符，由
<span class="function"><a href="function.xslt-create.html" class="function">xslt_create()</a></span> 创建。</p></dd>


    
     <dt>
<em><code class="parameter">uri</code></em></dt>

     <dd>

      <p class="para">
       The base URI to be used.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.xslt-set-base-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.xslt-set-base-changelog">
  <h3 class="title">更新日志</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>4.3.0</td>
       <td>
        As of PHP 4.3.0, the default base URI is the directory of the executing script.
        In effect, it is the directory name value of the <strong><code>__FILE__</code></strong>
        constant. The default base URI is less predictable with older versions.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.xslt-set-base-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para">请注意：
在使用 Windows 时，路径必须由 <em>file://</em> 开头。</p></p></blockquote>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.xslt-process.html">xslt_process</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.xslt-set-encoding.html">xslt_set_encoding</a></div>
 <div class="up"><a href="ref.xslt.html">XSLT (PHP 4) 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
